package com.baiyimi.powerjob.common.utils;


import com.baiyimi.powerjob.common.exception.PowerJobException;
import lombok.extern.slf4j.Slf4j;

@Slf4j
public class CommonUtils {


    public static <T> T requireNonNull(T obj, String msg) {
        if (obj == null) {
            throw new PowerJobException(msg);
        }

        return obj;
    }
}
